<ion-header>
    <ion-toolbar color="primary">
        <ion-buttons slot="start">
            <ion-back-button></ion-back-button>
        </ion-buttons>
        <ion-title>信息发布</ion-title>
    </ion-toolbar>
</ion-header>

<ion-content>
    <ion-item>
        <ion-label color="primary" position="floating">标题</ion-label>
        <ion-textarea rows="2" cols="20" [(ngModel)]="ctitle"></ion-textarea>
    </ion-item>
    <ion-item>
        <ion-label color="primary" position="floating">摘要</ion-label>
        <ion-textarea rows="2" cols="20" [(ngModel)]="cdesc"></ion-textarea>
    </ion-item>

    <ckeditor id="editor" [editor]="Editor" [(ngModel)]="editorData" [config]="{ toolbar: [ 'heading','undo', 'redo',  '|', 'bold', 'italic', 'bulletedList', 'numberedList', 'blockQuote', 'link'] }"></ckeditor>
    <ion-button expand="full" (click)="submit()">提交</ion-button>
</ion-content>